#ifndef SESSIONCONFIG_H
#define SESSIONCONFIG_H

#include "iconfig.h"

namespace stitch {

class SessionConfig : public IConfig
{
public:
    explicit  SessionConfig(Config *p_mgr);
    ~SessionConfig();

    void init() Q_DECL_OVERRIDE;
    void writeToSettings() const Q_DECL_OVERRIDE;
    QJsonObject toJson() const Q_DECL_OVERRIDE;

    bool getSystemTitleBarEnabled() const;
    void setSystemTitleBarEnabled(bool p_enabled);

    const QString &getFlashPage() const;
    void setFlashPage(const QString &p_file);

    const QStringList &getQuickAccessFiles() const;
    void setQuickAccessFiles(const QStringList &p_files);
    void removeQuickAccessFile(const QString &p_file);

private:
         // Whether use system's title bar or not.
    bool m_systemTitleBarEnabled = true;
    QString m_flashPage;
    QStringList m_quickAccessFiles;
};

}


#endif // SESSIONCONFIG_H
